//
//  XQTPay.h
//  iPaynowPluginDemo
//
//  Created by huangchengqi on 15/8/13.
//  Copyright (c) 2015年 Ipaynow. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "IPNPreSignMessageUtil.h"
#import  "CommonCrypto/CommonDigest.h"
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <net/if.h>
#include <net/if_dl.h>
#import "IpaynowPluginApi.h"
#import <CoreFoundation/CoreFoundation.h>

 


@protocol XQTPayDelegate <NSObject>

/*
 Status = 1->支付成功
 Status = 2->支付被取消
 Status = 3->支付支付失败
 Status = 4->支付结果未知
 errorStr -> 返回支付结果字符串
 */
- (void)XQTPayBackToDa:(NSInteger)Status  ERROR:(NSString *) errorStr errorCode:(NSString *)errorcode;

@end

@interface XQTPay : NSObject <IpaynowPluginDelegate,UIAlertViewDelegate>

@property (nonatomic,copy)NSString *XqtPayOrderNo;//商户订单号
@property (nonatomic,copy)NSString *XqtPayOrderName;//商户商品名称
@property (nonatomic,copy)NSString *XqtPayOrderDetail;//商户订单详情
@property (nonatomic,copy)NSString *XqtPaynotifyUrl;//商户后台通知URL
@property (nonatomic,copy)NSString *XqtPayOrderAmt;//商品价格
@property (nonatomic,copy)NSString *XqtPayScheme;//InfoURL Types
@property (nonatomic,copy)NSString *XqtPayChannelType;//支付渠道类型
@property (nonatomic,copy)NSString *XqtPayconsumerId;//网关商户号
@property (nonatomic,copy)NSString *XqtPayStrsign;//签名--需要MD5加密
@property (nonatomic,copy)NSString *XqtPaysuperid;//上级带代理
 


 
-(void)StartPayingFromViewController:(UIViewController *)uiviewcontroller;

@property (nonatomic, retain) id <XQTPayDelegate> delegate;
@end
